<HTML>
<BODY BGCOLOR="white">
<PRE>
<FONT color="green">001</FONT>    /**<a name="line.1"></a>
<FONT color="green">002</FONT>     * <a name="line.2"></a>
<FONT color="green">003</FONT>     * The MIT License<a name="line.3"></a>
<FONT color="green">004</FONT>     * <a name="line.4"></a>
<FONT color="green">005</FONT>     * Copyright (c) 2007 the original author or authors.<a name="line.5"></a>
<FONT color="green">006</FONT>     * <a name="line.6"></a>
<FONT color="green">007</FONT>     * Permission is hereby granted, free of charge, to any person obtaining a copy<a name="line.7"></a>
<FONT color="green">008</FONT>     * of this software and associated documentation files (the "Software"), to deal<a name="line.8"></a>
<FONT color="green">009</FONT>     * in the Software without restriction, including without limitation the rights<a name="line.9"></a>
<FONT color="green">010</FONT>     * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<a name="line.10"></a>
<FONT color="green">011</FONT>     * copies of the Software, and to permit persons to whom the Software is<a name="line.11"></a>
<FONT color="green">012</FONT>     * furnished to do so, subject to the following conditions:<a name="line.12"></a>
<FONT color="green">013</FONT>    <a name="line.13"></a>
<FONT color="green">014</FONT>     * The above copyright notice and this permission notice shall be included in<a name="line.14"></a>
<FONT color="green">015</FONT>     * all copies or substantial portions of the Software.<a name="line.15"></a>
<FONT color="green">016</FONT>    <a name="line.16"></a>
<FONT color="green">017</FONT>     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<a name="line.17"></a>
<FONT color="green">018</FONT>     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<a name="line.18"></a>
<FONT color="green">019</FONT>     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<a name="line.19"></a>
<FONT color="green">020</FONT>     * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<a name="line.20"></a>
<FONT color="green">021</FONT>     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<a name="line.21"></a>
<FONT color="green">022</FONT>     * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN<a name="line.22"></a>
<FONT color="green">023</FONT>     * THE SOFTWARE.<a name="line.23"></a>
<FONT color="green">024</FONT>     */<a name="line.24"></a>
<FONT color="green">025</FONT>    <a name="line.25"></a>
<FONT color="green">026</FONT>    package com.googlecode.client;<a name="line.26"></a>
<FONT color="green">027</FONT>    <a name="line.27"></a>
<FONT color="green">028</FONT>    /**<a name="line.28"></a>
<FONT color="green">029</FONT>     * RGB Color. There are many predefined colors defined herein (e.g. Color.AQUA).<a name="line.29"></a>
<FONT color="green">030</FONT>     * You can also construct a color with the usual hexdecimal notation (e.g.<a name="line.30"></a>
<FONT color="green">031</FONT>     * F0F8FF)<a name="line.31"></a>
<FONT color="green">032</FONT>     * <a name="line.32"></a>
<FONT color="green">033</FONT>     * @author Julien Chastang<a name="line.33"></a>
<FONT color="green">034</FONT>     */<a name="line.34"></a>
<FONT color="green">035</FONT>    public class Color {<a name="line.35"></a>
<FONT color="green">036</FONT>    <a name="line.36"></a>
<FONT color="green">037</FONT>            public static final Color ALICEBLUE = new Color("F0F8FF");<a name="line.37"></a>
<FONT color="green">038</FONT>            public static final Color ANTIQUEWHITE = new Color("FAEBD7");<a name="line.38"></a>
<FONT color="green">039</FONT>            public static final Color AQUA = new Color("00FFFF");<a name="line.39"></a>
<FONT color="green">040</FONT>            public static final Color AQUAMARINE = new Color("7FFFD4");<a name="line.40"></a>
<FONT color="green">041</FONT>            public static final Color AZURE = new Color("F0FFFF");<a name="line.41"></a>
<FONT color="green">042</FONT>            public static final Color BEIGE = new Color("F5F5DC");<a name="line.42"></a>
<FONT color="green">043</FONT>            public static final Color BISQUE = new Color("FFE4C4");<a name="line.43"></a>
<FONT color="green">044</FONT>            public static final Color BLACK = new Color("000000");<a name="line.44"></a>
<FONT color="green">045</FONT>            public static final Color BLANCHEDALMOND = new Color("FFEBCD");<a name="line.45"></a>
<FONT color="green">046</FONT>            public static final Color BLUE = new Color("0000FF");<a name="line.46"></a>
<FONT color="green">047</FONT>            public static final Color BLUEVIOLET = new Color("8A2BE2");<a name="line.47"></a>
<FONT color="green">048</FONT>            public static final Color BROWN = new Color("A52A2A");<a name="line.48"></a>
<FONT color="green">049</FONT>            public static final Color BURLYWOOD = new Color("DEB887");<a name="line.49"></a>
<FONT color="green">050</FONT>            public static final Color CADETBLUE = new Color("5F9EA0");<a name="line.50"></a>
<FONT color="green">051</FONT>            public static final Color CHARTREUSE = new Color("7FFF00");<a name="line.51"></a>
<FONT color="green">052</FONT>            public static final Color CHOCOLATE = new Color("D2691E");<a name="line.52"></a>
<FONT color="green">053</FONT>            public static final Color CORAL = new Color("FF7F50");<a name="line.53"></a>
<FONT color="green">054</FONT>            public static final Color CORNFLOWERBLUE = new Color("6495ED");<a name="line.54"></a>
<FONT color="green">055</FONT>            public static final Color CORNSILK = new Color("FFF8DC");<a name="line.55"></a>
<FONT color="green">056</FONT>            public static final Color CRIMSON = new Color("DC143C");<a name="line.56"></a>
<FONT color="green">057</FONT>            public static final Color CYAN = new Color("00FFFF");<a name="line.57"></a>
<FONT color="green">058</FONT>            public static final Color DARKBLUE = new Color("00008B");<a name="line.58"></a>
<FONT color="green">059</FONT>            public static final Color DARKCYAN = new Color("008B8B");<a name="line.59"></a>
<FONT color="green">060</FONT>            public static final Color DARKGOLDENROD = new Color("B8860B");<a name="line.60"></a>
<FONT color="green">061</FONT>            public static final Color DARKGRAY = new Color("A9A9A9");<a name="line.61"></a>
<FONT color="green">062</FONT>            public static final Color DARKGREEN = new Color("006400");<a name="line.62"></a>
<FONT color="green">063</FONT>            public static final Color DARKKHAKI = new Color("BDB76B");<a name="line.63"></a>
<FONT color="green">064</FONT>            public static final Color DARKMAGENTA = new Color("8B008B");<a name="line.64"></a>
<FONT color="green">065</FONT>            public static final Color DARKOLIVEGREEN = new Color("556B2F");<a name="line.65"></a>
<FONT color="green">066</FONT>            public static final Color DARKORANGE = new Color("FF8C00");<a name="line.66"></a>
<FONT color="green">067</FONT>            public static final Color DARKORCHID = new Color("9932CC");<a name="line.67"></a>
<FONT color="green">068</FONT>            public static final Color DARKRED = new Color("8B0000");<a name="line.68"></a>
<FONT color="green">069</FONT>            public static final Color DARKSALMON = new Color("E9967A");<a name="line.69"></a>
<FONT color="green">070</FONT>            public static final Color DARKSEAGREEN = new Color("8FBC8F");<a name="line.70"></a>
<FONT color="green">071</FONT>            public static final Color DARKSLATEBLUE = new Color("483D8B");<a name="line.71"></a>
<FONT color="green">072</FONT>            public static final Color DARKSLATEGRAY = new Color("2F4F4F");<a name="line.72"></a>
<FONT color="green">073</FONT>            public static final Color DARKTURQUOISE = new Color("00CED1");<a name="line.73"></a>
<FONT color="green">074</FONT>            public static final Color DARKVIOLET = new Color("9400D3");<a name="line.74"></a>
<FONT color="green">075</FONT>            public static final Color DEEPPINK = new Color("FF1493");<a name="line.75"></a>
<FONT color="green">076</FONT>            public static final Color DEEPSKYBLUE = new Color("00BFFF");<a name="line.76"></a>
<FONT color="green">077</FONT>            public static final Color DIMGRAY = new Color("696969");<a name="line.77"></a>
<FONT color="green">078</FONT>            public static final Color DODGERBLUE = new Color("1E90FF");<a name="line.78"></a>
<FONT color="green">079</FONT>            public static final Color FIREBRICK = new Color("B22222");<a name="line.79"></a>
<FONT color="green">080</FONT>            public static final Color FLORALWHITE = new Color("FFFAF0");<a name="line.80"></a>
<FONT color="green">081</FONT>            public static final Color FORESTGREEN = new Color("228B22");<a name="line.81"></a>
<FONT color="green">082</FONT>            public static final Color FUCHSIA = new Color("FF00FF");<a name="line.82"></a>
<FONT color="green">083</FONT>            public static final Color GAINSBORO = new Color("DCDCDC");<a name="line.83"></a>
<FONT color="green">084</FONT>            public static final Color GHOSTWHITE = new Color("F8F8FF");<a name="line.84"></a>
<FONT color="green">085</FONT>            public static final Color GOLD = new Color("FFD700");<a name="line.85"></a>
<FONT color="green">086</FONT>            public static final Color GOLDENROD = new Color("DAA520");<a name="line.86"></a>
<FONT color="green">087</FONT>            public static final Color GRAY = new Color("808080");<a name="line.87"></a>
<FONT color="green">088</FONT>            public static final Color GREEN = new Color("008000");<a name="line.88"></a>
<FONT color="green">089</FONT>            public static final Color GREENYELLOW = new Color("ADFF2F");<a name="line.89"></a>
<FONT color="green">090</FONT>            public static final Color HONEYDEW = new Color("F0FFF0");<a name="line.90"></a>
<FONT color="green">091</FONT>            public static final Color HOTPINK = new Color("FF69B4");<a name="line.91"></a>
<FONT color="green">092</FONT>            public static final Color INDIANRED = new Color("CD5C5C");<a name="line.92"></a>
<FONT color="green">093</FONT>            public static final Color INDIGO = new Color("4B0082");<a name="line.93"></a>
<FONT color="green">094</FONT>            public static final Color IVORY = new Color("FFFFF0");<a name="line.94"></a>
<FONT color="green">095</FONT>            public static final Color KHAKI = new Color("F0E68C");<a name="line.95"></a>
<FONT color="green">096</FONT>            public static final Color LAVENDER = new Color("E6E6FA");<a name="line.96"></a>
<FONT color="green">097</FONT>            public static final Color LAVENDERBLUSH = new Color("FFF0F5");<a name="line.97"></a>
<FONT color="green">098</FONT>            public static final Color LAWNGREEN = new Color("7CFC00");<a name="line.98"></a>
<FONT color="green">099</FONT>            public static final Color LEMONCHIFFON = new Color("FFFACD");<a name="line.99"></a>
<FONT color="green">100</FONT>            public static final Color LIGHTBLUE = new Color("ADD8E6");<a name="line.100"></a>
<FONT color="green">101</FONT>            public static final Color LIGHTCORAL = new Color("F08080");<a name="line.101"></a>
<FONT color="green">102</FONT>            public static final Color LIGHTCYAN = new Color("E0FFFF");<a name="line.102"></a>
<FONT color="green">103</FONT>            public static final Color LIGHTGOLDENRODYELLOW = new Color("FAFAD2");<a name="line.103"></a>
<FONT color="green">104</FONT>            public static final Color LIGHTGREEN = new Color("90EE90");<a name="line.104"></a>
<FONT color="green">105</FONT>            public static final Color LIGHTGREY = new Color("D3D3D3");<a name="line.105"></a>
<FONT color="green">106</FONT>            public static final Color LIGHTPINK = new Color("FFB6C1");<a name="line.106"></a>
<FONT color="green">107</FONT>            public static final Color LIGHTSALMON = new Color("FFA07A");<a name="line.107"></a>
<FONT color="green">108</FONT>            public static final Color LIGHTSEAGREEN = new Color("20B2AA");<a name="line.108"></a>
<FONT color="green">109</FONT>            public static final Color LIGHTSKYBLUE = new Color("87CEFA");<a name="line.109"></a>
<FONT color="green">110</FONT>            public static final Color LIGHTSLATEGRAY = new Color("778899");<a name="line.110"></a>
<FONT color="green">111</FONT>            public static final Color LIGHTSTEELBLUE = new Color("B0C4DE");<a name="line.111"></a>
<FONT color="green">112</FONT>            public static final Color LIGHTYELLOW = new Color("FFFFE0");<a name="line.112"></a>
<FONT color="green">113</FONT>            public static final Color LIME = new Color("00FF00");<a name="line.113"></a>
<FONT color="green">114</FONT>            public static final Color LIMEGREEN = new Color("32CD32");<a name="line.114"></a>
<FONT color="green">115</FONT>            public static final Color LINEN = new Color("FAF0E6");<a name="line.115"></a>
<FONT color="green">116</FONT>            public static final Color MAGENTA = new Color("FF00FF");<a name="line.116"></a>
<FONT color="green">117</FONT>            public static final Color MAROON = new Color("800000");<a name="line.117"></a>
<FONT color="green">118</FONT>            public static final Color MEDIUMAQUAMARINE = new Color("66CDAA");<a name="line.118"></a>
<FONT color="green">119</FONT>            public static final Color MEDIUMBLUE = new Color("0000CD");<a name="line.119"></a>
<FONT color="green">120</FONT>            public static final Color MEDIUMORCHID = new Color("BA55D3");<a name="line.120"></a>
<FONT color="green">121</FONT>            public static final Color MEDIUMPURPLE = new Color("9370DB");<a name="line.121"></a>
<FONT color="green">122</FONT>            public static final Color MEDIUMSEAGREEN = new Color("3CB371");<a name="line.122"></a>
<FONT color="green">123</FONT>            public static final Color MEDIUMSLATEBLUE = new Color("7B68EE");<a name="line.123"></a>
<FONT color="green">124</FONT>            public static final Color MEDIUMSPRINGGREEN = new Color("00FA9A");<a name="line.124"></a>
<FONT color="green">125</FONT>            public static final Color MEDIUMTURQUOISE = new Color("48D1CC");<a name="line.125"></a>
<FONT color="green">126</FONT>            public static final Color MEDIUMVIOLETRED = new Color("C71585");<a name="line.126"></a>
<FONT color="green">127</FONT>            public static final Color MIDNIGHTBLUE = new Color("191970");<a name="line.127"></a>
<FONT color="green">128</FONT>            public static final Color MINTCREAM = new Color("F5FFFA");<a name="line.128"></a>
<FONT color="green">129</FONT>            public static final Color MISTYROSE = new Color("FFE4E1");<a name="line.129"></a>
<FONT color="green">130</FONT>            public static final Color MOCCASIN = new Color("FFE4B5");<a name="line.130"></a>
<FONT color="green">131</FONT>            public static final Color NAVAJOWHITE = new Color("FFDEAD");<a name="line.131"></a>
<FONT color="green">132</FONT>            public static final Color NAVY = new Color("000080");<a name="line.132"></a>
<FONT color="green">133</FONT>            public static final Color OLDLACE = new Color("FDF5E6");<a name="line.133"></a>
<FONT color="green">134</FONT>            public static final Color OLIVE = new Color("808000");<a name="line.134"></a>
<FONT color="green">135</FONT>            public static final Color OLIVEDRAB = new Color("6B8E23");<a name="line.135"></a>
<FONT color="green">136</FONT>            public static final Color ORANGE = new Color("FFA500");<a name="line.136"></a>
<FONT color="green">137</FONT>            public static final Color ORANGERED = new Color("FF4500");<a name="line.137"></a>
<FONT color="green">138</FONT>            public static final Color ORCHID = new Color("DA70D6");<a name="line.138"></a>
<FONT color="green">139</FONT>            public static final Color PALEGOLDENROD = new Color("EEE8AA");<a name="line.139"></a>
<FONT color="green">140</FONT>            public static final Color PALEGREEN = new Color("98FB98");<a name="line.140"></a>
<FONT color="green">141</FONT>            public static final Color PALETURQUOISE = new Color("AFEEEE");<a name="line.141"></a>
<FONT color="green">142</FONT>            public static final Color PALEVIOLETRED = new Color("DB7093");<a name="line.142"></a>
<FONT color="green">143</FONT>            public static final Color PAPAYAWHIP = new Color("FFEFD5");<a name="line.143"></a>
<FONT color="green">144</FONT>            public static final Color PEACHPUFF = new Color("FFDAB9");<a name="line.144"></a>
<FONT color="green">145</FONT>            public static final Color PERU = new Color("CD853F");<a name="line.145"></a>
<FONT color="green">146</FONT>            public static final Color PINK = new Color("FFC0CB");<a name="line.146"></a>
<FONT color="green">147</FONT>            public static final Color PLUM = new Color("DDA0DD");<a name="line.147"></a>
<FONT color="green">148</FONT>            public static final Color POWDERBLUE = new Color("B0E0E6");<a name="line.148"></a>
<FONT color="green">149</FONT>            public static final Color PURPLE = new Color("800080");<a name="line.149"></a>
<FONT color="green">150</FONT>            public static final Color RED = new Color("FF0000");<a name="line.150"></a>
<FONT color="green">151</FONT>            public static final Color ROSYBROWN = new Color("BC8F8F");<a name="line.151"></a>
<FONT color="green">152</FONT>            public static final Color ROYALBLUE = new Color("4169E1");<a name="line.152"></a>
<FONT color="green">153</FONT>            public static final Color SADDLEBROWN = new Color("8B4513");<a name="line.153"></a>
<FONT color="green">154</FONT>            public static final Color SALMON = new Color("FA8072");<a name="line.154"></a>
<FONT color="green">155</FONT>            public static final Color SANDYBROWN = new Color("F4A460");<a name="line.155"></a>
<FONT color="green">156</FONT>            public static final Color SEAGREEN = new Color("2E8B57");<a name="line.156"></a>
<FONT color="green">157</FONT>            public static final Color SEASHELL = new Color("FFF5EE");<a name="line.157"></a>
<FONT color="green">158</FONT>            public static final Color SIENNA = new Color("A0522D");<a name="line.158"></a>
<FONT color="green">159</FONT>            public static final Color SILVER = new Color("C0C0C0");<a name="line.159"></a>
<FONT color="green">160</FONT>            public static final Color SKYBLUE = new Color("87CEEB");<a name="line.160"></a>
<FONT color="green">161</FONT>            public static final Color SLATEBLUE = new Color("6A5ACD");<a name="line.161"></a>
<FONT color="green">162</FONT>            public static final Color SLATEGRAY = new Color("708090");<a name="line.162"></a>
<FONT color="green">163</FONT>            public static final Color SNOW = new Color("FFFAFA");<a name="line.163"></a>
<FONT color="green">164</FONT>            public static final Color SPRINGGREEN = new Color("00FF7F");<a name="line.164"></a>
<FONT color="green">165</FONT>            public static final Color STEELBLUE = new Color("4682B4");<a name="line.165"></a>
<FONT color="green">166</FONT>            public static final Color TAN = new Color("D2B48C");<a name="line.166"></a>
<FONT color="green">167</FONT>            public static final Color TEAL = new Color("008080");<a name="line.167"></a>
<FONT color="green">168</FONT>            public static final Color THISTLE = new Color("D8BFD8");<a name="line.168"></a>
<FONT color="green">169</FONT>            public static final Color TOMATO = new Color("FF6347");<a name="line.169"></a>
<FONT color="green">170</FONT>            public static final Color TURQUOISE = new Color("40E0D0");<a name="line.170"></a>
<FONT color="green">171</FONT>            public static final Color VIOLET = new Color("EE82EE");<a name="line.171"></a>
<FONT color="green">172</FONT>            public static final Color WHEAT = new Color("F5DEB3");<a name="line.172"></a>
<FONT color="green">173</FONT>            public static final Color WHITE = new Color("FFFFFF");<a name="line.173"></a>
<FONT color="green">174</FONT>            public static final Color WHITESMOKE = new Color("F5F5F5");<a name="line.174"></a>
<FONT color="green">175</FONT>            public static final Color YELLOW = new Color("FFFF00");<a name="line.175"></a>
<FONT color="green">176</FONT>            public static final Color YELLOWGREEN = new Color("9ACD32");<a name="line.176"></a>
<FONT color="green">177</FONT>    <a name="line.177"></a>
<FONT color="green">178</FONT>            private final String color;<a name="line.178"></a>
<FONT color="green">179</FONT>            <a name="line.179"></a>
<FONT color="green">180</FONT>            private String opacity;<a name="line.180"></a>
<FONT color="green">181</FONT>    <a name="line.181"></a>
<FONT color="green">182</FONT>            /**<a name="line.182"></a>
<FONT color="green">183</FONT>             * Pass in an RGB color string from 000000 to FFFFFF<a name="line.183"></a>
<FONT color="green">184</FONT>             * <a name="line.184"></a>
<FONT color="green">185</FONT>             * @param color<a name="line.185"></a>
<FONT color="green">186</FONT>             *            RGB color in hexidecimal.<a name="line.186"></a>
<FONT color="green">187</FONT>             */<a name="line.187"></a>
<FONT color="green">188</FONT>            public Color(final String color) {<a name="line.188"></a>
<FONT color="green">189</FONT>                    int colorInt;<a name="line.189"></a>
<FONT color="green">190</FONT>                    try {<a name="line.190"></a>
<FONT color="green">191</FONT>                            colorInt = Integer.parseInt(color, 16);<a name="line.191"></a>
<FONT color="green">192</FONT>                    } catch (NumberFormatException e) {<a name="line.192"></a>
<FONT color="green">193</FONT>                            throw new IllegalArgumentException(color + " is not a valid color.");<a name="line.193"></a>
<FONT color="green">194</FONT>                    }<a name="line.194"></a>
<FONT color="green">195</FONT>                    //Bit shifting 3 bytes should yield 0 for rgb colors.<a name="line.195"></a>
<FONT color="green">196</FONT>                    if ((colorInt &gt;&gt; 24) != 0){<a name="line.196"></a>
<FONT color="green">197</FONT>                            throw new IllegalArgumentException(color + " is not a valid color.");<a name="line.197"></a>
<FONT color="green">198</FONT>                    }<a name="line.198"></a>
<FONT color="green">199</FONT>                    if (color.length() != 6){<a name="line.199"></a>
<FONT color="green">200</FONT>                            throw new IllegalArgumentException(color + " is not a valid color. (Must be 6 charcters long.)");<a name="line.200"></a>
<FONT color="green">201</FONT>                    }<a name="line.201"></a>
<FONT color="green">202</FONT>                    this.color = color.toUpperCase();<a name="line.202"></a>
<FONT color="green">203</FONT>            }<a name="line.203"></a>
<FONT color="green">204</FONT>            <a name="line.204"></a>
<FONT color="green">205</FONT>            /**<a name="line.205"></a>
<FONT color="green">206</FONT>             * You can optionally specify transparency by appending a value between 00<a name="line.206"></a>
<FONT color="green">207</FONT>             * and FF where 00 is completely transparent and FF completely opaque.<a name="line.207"></a>
<FONT color="green">208</FONT>             * <a name="line.208"></a>
<FONT color="green">209</FONT>             * @param opacity<a name="line.209"></a>
<FONT color="green">210</FONT>             *            00 is completely transparent and FF completely opaque<a name="line.210"></a>
<FONT color="green">211</FONT>             */<a name="line.211"></a>
<FONT color="green">212</FONT>            public void setOpacity(final String opacity){<a name="line.212"></a>
<FONT color="green">213</FONT>                    int opacityInt;<a name="line.213"></a>
<FONT color="green">214</FONT>                    try {<a name="line.214"></a>
<FONT color="green">215</FONT>                            opacityInt = Integer.parseInt(opacity, 16);<a name="line.215"></a>
<FONT color="green">216</FONT>                    } catch (NumberFormatException e) {<a name="line.216"></a>
<FONT color="green">217</FONT>                            throw new IllegalArgumentException(opacity + " is not a valid opacity.");<a name="line.217"></a>
<FONT color="green">218</FONT>                    }<a name="line.218"></a>
<FONT color="green">219</FONT>                    //Bit shifting 1 bytes should yield 0 for opacity.<a name="line.219"></a>
<FONT color="green">220</FONT>                    if ((opacityInt &gt;&gt; 8) != 0){<a name="line.220"></a>
<FONT color="green">221</FONT>                            throw new IllegalArgumentException(opacity + " is not a valid opacity.");<a name="line.221"></a>
<FONT color="green">222</FONT>                    }<a name="line.222"></a>
<FONT color="green">223</FONT>                    if (opacity.length() != 2){<a name="line.223"></a>
<FONT color="green">224</FONT>                            throw new IllegalArgumentException(opacity + " is not a valid opacity. (Must be 2 charcters long.)");<a name="line.224"></a>
<FONT color="green">225</FONT>                    }<a name="line.225"></a>
<FONT color="green">226</FONT>                    this.opacity = opacity.toUpperCase();<a name="line.226"></a>
<FONT color="green">227</FONT>            }<a name="line.227"></a>
<FONT color="green">228</FONT>    <a name="line.228"></a>
<FONT color="green">229</FONT>            public String toString() {<a name="line.229"></a>
<FONT color="green">230</FONT>                    return color +  ((opacity != null) ? opacity : "");<a name="line.230"></a>
<FONT color="green">231</FONT>            }       <a name="line.231"></a>
<FONT color="green">232</FONT>    }<a name="line.232"></a>




























































</PRE>
</BODY>
</HTML>
